#clean previous build folder
rm -rf build_arkts
# obtain code
repo sync

# install dependencies
sudo ./scripts/install-deps-ubuntu -i=dev -i=test

# install 3rd party
./scripts/install-third-party --force-clone

# create new build folder
mkdir build_arkts && cd build_arkts || exit

cmake .. -GNinja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILECOMMANDS=ON -DPANDA_ETS_INTEROP_JS=1

ninja -k1 ark ark_aot es2panda ark_disasm verifier

# to run test target, using ninja
ninja -v ets_interop_js_gtests
